<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp" %>
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" href="../css/bootstrap.min.css">
	<link rel="stylesheet" href="../css/bootstrap-responsive.css">
	<link rel="stylesheet" href="../css/docs.css">
</head>
<body class="body">
	<% pageContext.setAttribute("left", "contact"); %>
	<%@ include file="include/top.jsp" %>
<!-- 联系人的表单提交 -->	
	
	<div class="container">
	  <div class="row">
	  <%@ include file="include/left.jsp" %>
		<div class="span9">
			<form class="form-horizontal" id = "s" action="contactsubmit.jspx" method = "post">
        <fieldset>
          <legend>添加新联系人</legend>
          <c:choose>
          	<c:when test="${result eq 'true'}">
          	<div class="alert alert-success">
              <button type="button" class="close" data-dismiss="alert">×</button>
              <strong>恭喜!</strong> 已成功添加.
            </div>
          	</c:when>
          <c:when test="${result eq 'false'}">
          
			<div class="alert alert-error">
              <button type="button" class="close" data-dismiss="alert">×</button>
              <strong>糟糕!</strong> 添加失败.
            </div>
          
          </c:when>
          
          </c:choose>
          
          <div class="control-group">
            <label class="control-label" for="input01" >姓名</label>
            <div class="controls">
              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name = "contactname">
            </div>
          </div>
		   <div class="control-group">
            <label class="control-label" for="input01"  >公司</label>
            <div class="controls">
              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name = "company">
            </div>
          </div>
		  <div class="line"></div>
		   <div class="control-group">
            <label class="control-label" for="input01" >手机</label>
            <div class="controls">
              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name = "tel">
            </div>
          </div>
		   <div class="control-group">
            <label class="control-label" for="input01" >固话</label>
            <div class="controls">
              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name = "fixedtel">
            </div>
          </div>
		  <div class="control-group">
            <label class="control-label" for="input01" >邮箱</label>
            <div class="controls">
              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name = "mail">
            </div>
          </div>
		   <div class="line"></div>
		  <div class="control-group">
            <label class="control-label" for="input01">地址</label>
            <div class="controls">
              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name = "address">
            </div>
          </div>
		   <div class="line"></div>
		   <div class="control-group">
            <label class="control-label" for="input01">主页</label>
            <div class="controls">
              <input type="text" class="span5" id="input01" name = "homepage">
			  <p class="help-block"></p>
            </div>
          </div>
		   <div class="control-group">
            <label class="control-label" for="input01">微博</label>
            <div class="controls">
				<select class="span2" name = "blogtype">
					<option></option>
					<option>新浪微博</option>
					<option>腾讯微博</option>
					<option>Twitter</option>
				</select>
				<div class="input-prepend">
					<span class="add-on">@</span><input class="span2" id="prependedInput" size="16" type="text" x-webkit-speech="undefined" name = "blogname">
                </div>
				
            </div>
          </div>
		   <div class="control-group">
            <label class="control-label" for="input01">简介</label>
            <div class="controls">
              <textarea class="span5" rows="6" name = "content"></textarea>
            </div>
          </div>
		  
		  

          <div class="form-actions">
            <button type="submit" class="btn btn-primary" id = "submit">保存</button>
            <a class="btn" href = "gocontact.jspx">返回</a>
          </div>
        </fieldset>
      </form>          
          	
		</div>
		<div class="span3">
			
		</div>
	  </div>
	</div>
	
	<script type="text/javascript" src = "js/jquery.js"></script>
	<script type="text/javascript">
		$(function(){
			$("#submit").click(function(){
				$("#s").submit();
				  
			
			});
		
			
		
		
		
		
		
		});
	
	
	
	</script>
	
	
	
	
	
</body>
</html>